package phi.engine.draw
{
	import flash.display.Sprite;

	public class CircleSprite extends DrawableSprite
	{
		public function CircleSprite()
		{
		}

		override public function draw():void
		{
			graphics.clear();
			
			var radius :Number = size.x / 2;
			
			graphics.lineStyle(1, color);
			graphics.beginFill( color, 0.5 );
			graphics.drawCircle( radius, radius, radius );
			graphics.moveTo(0, radius);
			graphics.lineTo(radius*2, radius);
			graphics.endFill();
		}
	}
}